package com.omdes.domains.account;

import com.omdes.domains.account.entity.Account;

/**
 * Created with IntelliJ IDEA.
 * User: solitary.wang
 * Date: 2017/6/9
 * Time: 11:42
 */
public interface AccountService {

    /**
     *
     * @param accountName
     * @param password
     * @return
     */
    Account authenticateAccount(String accountName, String password);

    /**
     * 向数据库新增一条账户信息
     *
     * @param account
     * @return true-新增成功；false-新增失败
     */
    boolean addOneAccount(Account account);
}
